package org.example.myleet.p563;

import org.example.myleet.Utils.Assert;
import org.example.myleet.Utils.Parser;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(0 == solution.findTilt(Parser.parse(new Integer[]{})));
        Assert.isTrue(1 == solution.findTilt(Parser.parse(new Integer[]{1,2,3})));
        Assert.isTrue(15 == solution.findTilt(Parser.parse(new Integer[]{4,2,9,3,5,null,7})));
        Assert.isTrue(9 == solution.findTilt(Parser.parse(new Integer[]{21,7,14,1,1,2,2,3,3})));
    }
}
